package com.cow.pojo;

import java.util.ArrayList;
import java.util.List;

public class LandExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LandExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLandIdIsNull() {
            addCriterion("land_id is null");
            return (Criteria) this;
        }

        public Criteria andLandIdIsNotNull() {
            addCriterion("land_id is not null");
            return (Criteria) this;
        }

        public Criteria andLandIdEqualTo(String value) {
            addCriterion("land_id =", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdNotEqualTo(String value) {
            addCriterion("land_id <>", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdGreaterThan(String value) {
            addCriterion("land_id >", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdGreaterThanOrEqualTo(String value) {
            addCriterion("land_id >=", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdLessThan(String value) {
            addCriterion("land_id <", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdLessThanOrEqualTo(String value) {
            addCriterion("land_id <=", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdLike(String value) {
            addCriterion("land_id like", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdNotLike(String value) {
            addCriterion("land_id not like", value, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdIn(List<String> values) {
            addCriterion("land_id in", values, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdNotIn(List<String> values) {
            addCriterion("land_id not in", values, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdBetween(String value1, String value2) {
            addCriterion("land_id between", value1, value2, "landId");
            return (Criteria) this;
        }

        public Criteria andLandIdNotBetween(String value1, String value2) {
            addCriterion("land_id not between", value1, value2, "landId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andSeedIdIsNull() {
            addCriterion("seed_id is null");
            return (Criteria) this;
        }

        public Criteria andSeedIdIsNotNull() {
            addCriterion("seed_id is not null");
            return (Criteria) this;
        }

        public Criteria andSeedIdEqualTo(String value) {
            addCriterion("seed_id =", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotEqualTo(String value) {
            addCriterion("seed_id <>", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdGreaterThan(String value) {
            addCriterion("seed_id >", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdGreaterThanOrEqualTo(String value) {
            addCriterion("seed_id >=", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdLessThan(String value) {
            addCriterion("seed_id <", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdLessThanOrEqualTo(String value) {
            addCriterion("seed_id <=", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdLike(String value) {
            addCriterion("seed_id like", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotLike(String value) {
            addCriterion("seed_id not like", value, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdIn(List<String> values) {
            addCriterion("seed_id in", values, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotIn(List<String> values) {
            addCriterion("seed_id not in", values, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdBetween(String value1, String value2) {
            addCriterion("seed_id between", value1, value2, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedIdNotBetween(String value1, String value2) {
            addCriterion("seed_id not between", value1, value2, "seedId");
            return (Criteria) this;
        }

        public Criteria andSeedExpIsNull() {
            addCriterion("seed_Exp is null");
            return (Criteria) this;
        }

        public Criteria andSeedExpIsNotNull() {
            addCriterion("seed_Exp is not null");
            return (Criteria) this;
        }

        public Criteria andSeedExpEqualTo(String value) {
            addCriterion("seed_Exp =", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpNotEqualTo(String value) {
            addCriterion("seed_Exp <>", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpGreaterThan(String value) {
            addCriterion("seed_Exp >", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpGreaterThanOrEqualTo(String value) {
            addCriterion("seed_Exp >=", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpLessThan(String value) {
            addCriterion("seed_Exp <", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpLessThanOrEqualTo(String value) {
            addCriterion("seed_Exp <=", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpLike(String value) {
            addCriterion("seed_Exp like", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpNotLike(String value) {
            addCriterion("seed_Exp not like", value, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpIn(List<String> values) {
            addCriterion("seed_Exp in", values, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpNotIn(List<String> values) {
            addCriterion("seed_Exp not in", values, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpBetween(String value1, String value2) {
            addCriterion("seed_Exp between", value1, value2, "seedExp");
            return (Criteria) this;
        }

        public Criteria andSeedExpNotBetween(String value1, String value2) {
            addCriterion("seed_Exp not between", value1, value2, "seedExp");
            return (Criteria) this;
        }

        public Criteria andLandPestsIsNull() {
            addCriterion("land_pests is null");
            return (Criteria) this;
        }

        public Criteria andLandPestsIsNotNull() {
            addCriterion("land_pests is not null");
            return (Criteria) this;
        }

        public Criteria andLandPestsEqualTo(String value) {
            addCriterion("land_pests =", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsNotEqualTo(String value) {
            addCriterion("land_pests <>", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsGreaterThan(String value) {
            addCriterion("land_pests >", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsGreaterThanOrEqualTo(String value) {
            addCriterion("land_pests >=", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsLessThan(String value) {
            addCriterion("land_pests <", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsLessThanOrEqualTo(String value) {
            addCriterion("land_pests <=", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsLike(String value) {
            addCriterion("land_pests like", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsNotLike(String value) {
            addCriterion("land_pests not like", value, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsIn(List<String> values) {
            addCriterion("land_pests in", values, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsNotIn(List<String> values) {
            addCriterion("land_pests not in", values, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsBetween(String value1, String value2) {
            addCriterion("land_pests between", value1, value2, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandPestsNotBetween(String value1, String value2) {
            addCriterion("land_pests not between", value1, value2, "landPests");
            return (Criteria) this;
        }

        public Criteria andLandDroughtIsNull() {
            addCriterion("land_drought is null");
            return (Criteria) this;
        }

        public Criteria andLandDroughtIsNotNull() {
            addCriterion("land_drought is not null");
            return (Criteria) this;
        }

        public Criteria andLandDroughtEqualTo(String value) {
            addCriterion("land_drought =", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtNotEqualTo(String value) {
            addCriterion("land_drought <>", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtGreaterThan(String value) {
            addCriterion("land_drought >", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtGreaterThanOrEqualTo(String value) {
            addCriterion("land_drought >=", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtLessThan(String value) {
            addCriterion("land_drought <", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtLessThanOrEqualTo(String value) {
            addCriterion("land_drought <=", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtLike(String value) {
            addCriterion("land_drought like", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtNotLike(String value) {
            addCriterion("land_drought not like", value, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtIn(List<String> values) {
            addCriterion("land_drought in", values, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtNotIn(List<String> values) {
            addCriterion("land_drought not in", values, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtBetween(String value1, String value2) {
            addCriterion("land_drought between", value1, value2, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandDroughtNotBetween(String value1, String value2) {
            addCriterion("land_drought not between", value1, value2, "landDrought");
            return (Criteria) this;
        }

        public Criteria andLandRepairIsNull() {
            addCriterion("land_repair is null");
            return (Criteria) this;
        }

        public Criteria andLandRepairIsNotNull() {
            addCriterion("land_repair is not null");
            return (Criteria) this;
        }

        public Criteria andLandRepairEqualTo(String value) {
            addCriterion("land_repair =", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairNotEqualTo(String value) {
            addCriterion("land_repair <>", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairGreaterThan(String value) {
            addCriterion("land_repair >", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairGreaterThanOrEqualTo(String value) {
            addCriterion("land_repair >=", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairLessThan(String value) {
            addCriterion("land_repair <", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairLessThanOrEqualTo(String value) {
            addCriterion("land_repair <=", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairLike(String value) {
            addCriterion("land_repair like", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairNotLike(String value) {
            addCriterion("land_repair not like", value, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairIn(List<String> values) {
            addCriterion("land_repair in", values, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairNotIn(List<String> values) {
            addCriterion("land_repair not in", values, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairBetween(String value1, String value2) {
            addCriterion("land_repair between", value1, value2, "landRepair");
            return (Criteria) this;
        }

        public Criteria andLandRepairNotBetween(String value1, String value2) {
            addCriterion("land_repair not between", value1, value2, "landRepair");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}